/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-03-11
 * Time: 10:16
 */
public class TestDemo {

    public static void main(String[] args) {
        //new一个对象
        myArrayList myarraylist =new myArrayList();
        for (int i = 0; i < 10; i++) {
            myarraylist.Add(i,i);
        }
        myarraylist.display();
        myarraylist.Add(10,100);
        myarraylist.display();

        myarraylist.remove(0);
        myarraylist.display();

        myarraylist.remove(100);
        myarraylist.display();
    }

}
